
 /**
 * Page.java.java.
 * User: BrianChen Date: 2012-7-4 下午03:43:34
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.core.orm.page;

import java.util.List;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-7-4 	BrianChen 	1. Created this class. 
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-7-4 下午03:43:34
 * @version 1.0
 * @see
 * 
 */
public class Page<E> {
	/**
	 * 总记录数
	 */
	private int total = 0;
	/**
	 * 当前页数据集
	 */
	private List<E> records = null;
	
	public Page(int total, List<E> records){
		this.records = records;
		this.total = total;
	}
	
	
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public List<E> getRecords() {
		return records;
	}
	public void setRecords(List<E> records) {
		this.records = records;
	}

	
}

